package com.kevin.spring.aop;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AOPTest {

	@Test
	public void TestAOP() {

		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"applicationContext.xml");

		PersonService personService = ctx.getBean("personServiceImp",
				PersonService.class);
		
		personService.save("Kevin");
	}
}
